package com.qsbg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String userId;
    private String profileId;
    private String openId;
    private String realName;
    private String phone;
    private String marjor;
    @TableField("`group`")//解决数据库字段名冲突
    private String group;
    private String nickname;
    private String avatarUrl;
    private Integer isTeacher;
    @TableField("enable")
    private boolean enabled;
    @TableLogic
    private Integer deleted;
    private Date createTime;
    private Date updateTime;

}
